package com.flyco.modules.sms.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.sms.entity.SmsAddbuyCondition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.flyco.modules.sms.vo.SmsAddbuyConditionPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Description: 加价购条件
 * @Author: flyco
 * @Date: 2020-04-08
 * @Version: V1.0
 */
@Repository
public interface SmsAddbuyConditionMapper extends BaseMapper<SmsAddbuyCondition> {

    public boolean deleteByMainId(Long mainId);

    public List<SmsAddbuyCondition> selectByMainId(Long mainId);

    List<SmsAddbuyConditionPage> getAddbuyConditionProductPage(Page<SmsAddbuyConditionPage> page, @Param("ew") Wrapper<SmsAddbuyConditionPage> queryWrapper);
}
